package com.paradogs.framework.core.netty.clients.common;

import com.paradogs.framework.core.utils.StringUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: yumi
 * @date: 2023/7/31  22:39
 * @Description: TODO
 */
@Data
@Component
@ConfigurationProperties("paradogs")
public class ClientsProperties {

    List<Client> clients = new ArrayList<>();

    @Data
    public static class Client {
        /**
         * 主机 ip
         */
        private String host;

        /**
         * 端口号
         */
        private int port;

        /**
         * 服务器类型
         */
        private String type;

    }

}
